package com.yan.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//<bean id = "user" class="com.yan.pojo.User"/>
@Component //组件
public class User {
    //<property name="name" value="Yan"/>
    @Value("Yan")
    public String name;
}
